// API配置
export const API_CONFIG = {
  // 开发环境
  development: {
    baseURL: 'http://localhost:8000',
    timeout: 10000
  },
  // 生产环境
  production: {
    baseURL: 'http://your-production-api.com',
    timeout: 10000
  }
}

// 根据环境获取配置
export const getApiConfig = () => {
  const env = import.meta.env.MODE || 'development'
  return API_CONFIG[env] || API_CONFIG.development
}

// API端点
export const API_ENDPOINTS = {
  // 基础接口
  health: '/health',
  root: '/',
  
  // 会话管理
  sessions: '/ai/sessions',
  sessionDetail: (id) => `/ai/sessions/${id}`,
  sessionConversations: (id) => `/ai/sessions/${id}/conversations`,
  sessionStatistics: (id) => `/ai/sessions/${id}/statistics`,
  
  // AI对话
  chat: '/ai/chat',
  
  // 搜索
  search: '/ai/search'
} 